/*
 * @Description:
 * @Author: 猪脚饭
 * @Date: 2022-11-16 09:27:12
 * @LastEditors: 猪脚饭
 * @LastEditTime: 2022-11-17 16:02:23
 */
import request from '@/utils/request'

// 获取房产列表
export function getCategory(params) {
  return request({
    url: '/properties',
    method: 'get',
    params
  })
}
// 根据id获取房产详情
export function getCategoryById(id) {
  return request({
    url: '/properties/' + id,
    method: 'get'
  })
}
// 获取分类数据
export function getCategoryList(params) {
  return request({
    url: '/categories',
    params
  })
}
// 获取分类数量
export function getCategoryCount() {
  return request({
    url: '/categories/count'
  })
}
// 获取房产数量
export function getProperties(params) {
  return request({
    url: '/properties/count',
    method: 'get',
    params
  })
}
// 获取经纪数据
export function getAgent(params) {
  return request({
    url: '/agents',
    params
  })
}
// 获取经纪数量
export function getAgentCount(params) {
  return request({
    url: '/agents/count',
    params
  })
}
